package cn.msqweb.src.feign;


import cn.msqweb.entity.Member;
import cn.msqweb.entity.MemberAddr;
import cn.msqweb.model.Result;
import cn.msqweb.src.feign.sentinel.OrderMemberFeignSentinel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "member-service",fallback = OrderMemberFeignSentinel.class)
public interface OrderMemberFeign {

    @GetMapping("admin/user/getMemberByOpenId")
    public Result<Member> getMemberByOpenId(@RequestParam String openId);

    @GetMapping("p/address/getMemberAddrById")
    public Result<MemberAddr> getMemberAddrById(@RequestParam Long id);
}
